update-game-score: fix bug with -r
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 07:46:53 +0000 (00:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 07:46:53 +0000 (00:46 -0700)
commit9fc276c97749e13af9b2de3a7895a17fcb946949
tree6905648258a40a777831e3f9a9dc44051a5f858d
parent55c548e96bbc7ecf5e8bd2cf147f9b67dec2cf55
update-game-score: fix bug with -r

* update-game-score.c (main): Don't set 'scores' to garbage when
-r is specified and scorecount != MAX_SCORES.  This bug was
introduced in the 2002-04-10 change, and was found with gcc
-Wstrict-overflow (GCC 4.5.2, x86-64).
lib-src/ChangeLog
lib-src/update-game-score.c